<?php
require '../core/core.php';
defined('BY_JYA') or exit('error');
define('IN_WQZ',true);
$w='Web';
define('IN_SYS',true);
require ROOT_D.'/api/open_we7/account.php';
require ROOT_D.'/api/open_we7/tpl'.$w.'.php';
require ROOT_D.'/api/open_we7/function.php';
require ROOT_D.'/api/open_we7/to_wqz.php';
$uniacid = intval($_GPC['i']);
if (empty($uniacid)) {
	die('Access Denied.');
}
$site = WeUtility::createModuleSite('ewei_shopv2');
$_GPC['c'] = 'site';
$_GPC['a'] = 'entry';
$_GPC['m'] = 'ewei_shopv2';
$_GPC['do'] = 'web';
if (!isset($_GPC['r'])) {
	$_GPC['r'] = 'cashier.manage.index';
} else {
	$_GPC['r'] = 'cashier.manage.' . $_GPC['r'];
}
$_W['uniacid'] = (int) $_GPC['i'];
$_W['acid'] = (int) $_GPC['i'];

	$method = 'doWebWeb';
	$site->uniacid = $uniacid;
	$site->inMobile = false;
		$site->{$method}();
		die;
